package com.jack.payment.dao.setting;

import com.jack.payment.entity.filter.RestFilter;
import com.jack.payment.entity.generate.setting.OfficialModel;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface OfficialDao {
    /**
     * 筛选出消息文案总数
     * @param officialFilter
     * @return
     */
    Integer getFilterOfficialMessageCount(RestFilter.OfficialFilter officialFilter);
    /**
     * 筛选出消息文案列表数据
     * @return
     */
    List<OfficialModel> getFilterOfficialMessageList(RestFilter.OfficialFilter officialFilter);

    /**
     *  根据id 获取消息
     * @param id
     * @return
     */
    OfficialModel getAppointOfficialMessage(@Param("name") String name);

    /**
     * 新增消息
     * @param officialModel
     * @return
     */
    boolean insertOfficialMessageContent(OfficialModel officialModel);

    /**
     * 更改消息
     * @param officialModel
     * @return
     */
    boolean updateOfficialMessageContent(OfficialModel officialModel);
}
